package com.dhecp.project.storage.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dhecp.core.constant.DataFiltering;
import com.dhecp.core.utils.PageUtils;
import com.dhecp.project.common.service.impl.BaseModuleServiceImpl;
import com.dhecp.project.storage.domain.GaugeMaintenance;
import com.dhecp.project.storage.mapper.GaugeMaintenanceMapper;
import com.dhecp.project.storage.service.GaugeMaintenanceService;
import com.dhecp.project.system.service.SysDictionaryForFieldService;

/**
 * @program: kjecp
 * @description: 箱规维护
 */
@Service
public class GaugeMaintenanceServiceImpl extends BaseModuleServiceImpl implements GaugeMaintenanceService {


    @Autowired
    private GaugeMaintenanceMapper storageMapper;

    @Autowired
    private SysDictionaryForFieldService dictionaryForFieldService;


    /**
     * @Description: 查询
     * @Param: [params]
     * @return: java.util.List<com.dhecp.project.storage.domain.GoodsAllocation>
     * @Author: hlf
     * @date: 2022-05-09 10:10
     */
    @Override
    public List<GaugeMaintenance> queryList(Map<String, Object> params) throws Exception {
        params.put(DataFiltering.TABLE_ALIAS, "t1");    //查询表别名
        params.put(DataFiltering.DATA_WHERE, dictionaryForFieldService.getWhereStr(params));    //常规查询条件SQL语句
        params.put(DataFiltering.DATA_SCODE, dictionaryForFieldService.getDataScode(params));    //数据权限查询条件SQL语句
        PageUtils.startPage();
        return storageMapper.select(params);
    }
}